/*
 *  $Id: FierceRush.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Fire.Spells {
    public class FierceRush: TargetEnchantmentCard<Creature> {
        public FierceRush(): base("001_f_s_fierce_rush") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Fire;
            Value = 100;
            Target = CreatureTarget.Both;
			AddManaCost(ElementType.Fire, 5);
        }

        protected override void DoAction(TargetArgs<Creature> args) {
            if (args.Target.Disabled) args.Target.State = CreatureState.Untapped;
            base.DoAction(args);
        }
        protected override EnchantmentAffect CreateEnchantment() {
            return new FierceRushAffect();
        }

        private class FierceRushAffect: EnchantmentAffect<FierceRush> {
            public FierceRushAffect() {
                Add(new Affects.Death(1));
                Add(new Affects.Berserk());
                Add(new Affects.Cannibal());
                Add(new Affects.Brutal());
                Add(new Affects.ScorchAttack(2));
            }
        }
    }
}
